package com.spring_core_demos.aware;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.MessageSource;
import org.springframework.context.MessageSourceAware;

public class BeanAwareDemo implements BeanNameAware,BeanFactoryAware,MessageSourceAware,ApplicationContextAware{

	public void setBeanName(String name) {
		System.out.println("setBeanName() : name="+name);
	}

	public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
		System.out.println("setBeanFactory() : beanFactory="+beanFactory);
	}

	public void setMessageSource(MessageSource messageSource) {
		System.out.println("setMessageSource() : messageSource="+messageSource);
	}

	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		System.out.println("setApplicationContext() : applicationContext="+applicationContext);
	}
	
}
